4D Chart v13CT GET LINE ATTRIBUTES |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Chart v13
CT GET LINE ATTRIBUTES
|
CT GET LINE ATTRIBUTES ( area ; scope ; pattern ; color ; lineWidth ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Chart area | |||||
scope | Longint |
![]() |
Scope of the command -2 = Default -1 = All 0 = Selected objects >0 = Object ID | |||||
pattern | Integer |
![]() |
Receives pattern index | |||||
color | Longint |
![]() |
Receives color value | |||||
lineWidth | Real |
![]() |
Receives line width (in points) | |||||
The CT GET LINE ATTRIBUTES command returns in the variables the line attributes for the object(s) in area described by scope. For objects other than lines, the line attributes apply to the object’s border.
pattern is the number of the pattern in the palette. The following are the codes for the pattern parameter:
color is a long integer that specifies the color of the object. You can specify a value for the color parameter by using the CT Index to color or the CT RGB to color functions.
lineWidth is the width of the line, measured in points.
Note: Use this command to get the attributes of lines added to the document using the Line tool or the CT Draw line function. To get the attributes of chart lines, such as grid lines, use the commands in the Chart theme.
This example returns the selected object's line attributes in the $Pattern, $Color, and $Width variables.
CT GET LINE ATTRIBUTES(Area;0;$Pattern;$Color;$Width)
Product: 4D Chart
Theme: CT Objects
Number:
14570
Created: 4D Chart 1
CT GET CHART LINE ATTRIBUTES
CT SET LINE ATTRIBUTES